import java.io.Closeable;
import java.io.IOException;
import java.net.Socket;

public class IOUtils {
	public static void closeQuietly(Closeable c) {
		if (c != null) {
			try {
				c.close();
			} catch (IOException ex) {
				ex.printStackTrace();
			}
		}
	}
	public static void closeQuietly(Socket c) {
		if (c != null) {
			try {
				c.close();
			} catch (IOException ex) {
				ex.printStackTrace();
			}
		}
	}
}